/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.system;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author chan
 */
public class UserDashboard implements Serializable{
    private int userId;
    private List<Dashboard> listDashboard;

    public UserDashboard() {
    }

    public List<Dashboard> getListDashboard() {
        
        
        return listDashboard;
    }
    
    public void loadDashboard(){
        listDashboard = new ArrayList<Dashboard>();
        
        listDashboard.add(new Dashboard(1, "finance", "Finance", "../dashboard/finance_dsb.xhtml", false,1));
        listDashboard.add(new Dashboard(2, "gl", "GL", "../dashboard/gl_dsb.xhtml", false,1));
        listDashboard.add(new Dashboard(3, "saving", "Saving", "../dashboard/saving_dsb.xhtml", false,2));
        listDashboard.add(new Dashboard(4, "loan", "Loan", "../dashboard/loan_dsb.xhtml", false,2));
        listDashboard.add(new Dashboard(5, "deposit", "Deposit", "../dashboard/deposit_dsb.xhtml", false,3));
    }
}
